﻿// -------------------------------------------------------------------------
//    @FileName         :    NFTransSaveAcc.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-08-17
//    @Email			:    445267987@qq.com
//    @Module           :    NFTransSaveAcc
//    @Desc             :    
//
// -------------------------------------------------------------------------

#pragma once

#include "proto_common_base.nanopb.h"
#include "NFLogicCommon/NFLogicShmTypeDefines.h"
#include "NFServerComm/NFServerCommon/NFCacheDataSaveTrans.h"

class NFOnlineAcc;
class NFTransSaveAcc : public NF_OBJECT_TEMPLATE_MACRO(NFTransSaveAcc, EOT_TRANS_SAVE_ACC, NFCacheDataSaveTrans)
public:
    NFTransSaveAcc();
    ~NFTransSaveAcc() override;
    int CreateInit();
    int ResumeInit();
public:
    int SaveDb(NFOnlineAcc* pAcc, int iReason = TRANS_SAVEROLEDETAIL_NORMAL);
};